import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'

//账户管理


//我的账户
//交易明细
export const getAccountList =
  (data) =>
    postAction(
      '/fund/account/detail/list',
      data
    )
//获取账户余额
export const getAccountBalance =
  (data) =>
    postAction(
      '/fund/getAccountRechangeStat',
      data
    )
//充值
export const getAccountSubNo =
  (data) =>
    postAction(
      '/fund/getAccountSubNo',
      data
    )
//提现
export const getWithdraw =
  (data) =>
    postAction(
      '/fund/withdraw',
      data
    )
//发送验证码
export const sendAccountSms =
  (data) =>
    postAction(
      '/fund/withdraw/check/smsSend',
      data
    )
//提现——查询
export const getWithdrawInfo =
  (data) =>
    postAction(
      '/fund/withdraw/info',
      data
    )




//公户信息
//获取省份列表
export const getAreaCodeListProvince =
  (data) =>
    getAction(
      '/zx/areaCode/listProvince',
      data
    )
//获取城市编号等信息
export const getAreaCodelist =
  (data) =>
    postAction(
      '/zx/areaCode/list',
      data
    )
//企业公户打款认证校验
export const getEntAccount =
  (data) =>
    getAction(
      '/zx/entAccount',
      data
    )
//添加企业公户打款认证创建
export const getPostEntAccount =
  (data) =>
    postAction(
      '/zx/entAccount',
      data
    )

//修改支付密码发送验证码
export const getSendSMSByLogin =
  (data) =>
    postAction(
      '/zx/usermgr/sendSMSByLogin',
      data
    )


//支付密码
//修改支付密码
export const getUpdatePayPwd =
  (data) =>
    postAction(
      '/zx/usermgr/updatePayPwd',
      data
    )



//公户信息--个人渠道设置收款账户
export const savePersonAcount =
  (data) =>
    postAction(
      '/zx/entAccount/saveChannelPersonAcount',
      data
    )
//获取登录人账户信息
export const savePersonEntAccount =
  (data) =>
    postAction(
      '/zx/entAccount/queryEntAccountByLogin',
      data
    )


//获取企业费率配置
export const getEntRate =
  (data) =>
    getAction(
      '/rightrate/getEntRate',
      data
    )
//银行列表查询
export const getBankInfoList =
  (data) =>
    getAction(
      '/information/bankInfoList',
      data
    )


//查询支付宝签约状态
export const getCheckSignStatus =
  (data) =>
    getAction(
      '/fund/zfb/checkSignStatus',
      data
    )

//支付宝签约,signUrl:返回的签约地址
export const getSigned =
  (data) =>
    postAction(
      '/fund/zfb/signed',
      data
    )

//企业支付宝充值(rechargeAmount:充值金额,单位分),获取支付链接(二维码)
export const getZfbEntRate =
  (data) =>
    postAction(
      '/fund/zfb/getEntRate',
      data
    )

//支付宝充值,检查支付总状态 (返回:1-未成功 2-成功)(传值: outBizNo)
export const getCheckPayStatus =
  (data) =>
    postAction(
      '/fund/zfb/checkPayStatus',
      data
    )

//获取企业支付宝公户信息(支付通道是支付宝类型的)
export const getZFBEntAccount =
  (data) =>
    postAction(
      '/fund/zfb/getZFBEntAccount',
      data
    )
